<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:custom="http://faces.componete/jsf"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:a4j="http://richfaces.org/a4j">
    <link href="./css/default.css" rel="stylesheet" type="text/css" />
    <body>

        <ui:composition template="./Template.xhtml">
            <ui:param name="title" value="Relatório Contas Pagar Receber Vencimento"/>
            <ui:define name="content">
                <h:form>
                    <fieldset class="camposCompleto">
                        <legend class="news">Relatório Contas Pagar Receber Vencimento</legend>
                        <table  align="center" border="0">
                            <tr>
                               <td class="label" align="right">Status:</td>
                                    <td align="left" >
                                        <h:selectOneMenu name="status" class="comboBox" value="#{RelatoriosBo.statusRelatorio}">
                                            <f:selectItem itemLabel="Selecione" itemValue=""/>
                                            <f:selectItem itemLabel="Aberto" itemValue="A" />
                                            <f:selectItem itemLabel="Liquidado" itemValue="L" />
                                            <f:selectItem itemLabel="Todos" itemValue="T" />
                                        </h:selectOneMenu>
                                    </td>
                            </tr>
                            <tr>
                                <td class="label" >Periodo:</td>
                                <td>
                                    
                                    <h:inputText converterMessage="Data Invalida" value="#{RelatoriosBo.dataInicial}" id="peridoInicial" styleClass="textFieldPequeno"  onkeypress="return formataCampo(this,3,10)" >

                                    <f:convertDateTime pattern="dd/MM/yyyy" locale="pt,BR" timeZone="America/Sao_Paulo" /></h:inputText>&#160;&#160; a&#160;&#160;
                                    <h:inputText converterMessage="Data Invalida" value="#{RelatoriosBo.dataFinal}" id="peridoFinal" styleClass="textFieldPequeno"  onkeypress="return formataCampo(this,3,10)">
                                    <f:convertDateTime pattern="dd/MM/yyyy" locale="pt,BR" timeZone="America/Sao_Paulo" /></h:inputText>
                                </td>

                            </tr>
                            <td>&nbsp;

                            </td>
                            <td>
                                <h:outputText styleClass="labelAlerta" value="#{RelatoriosBo.mensagem}" />
                                <h:commandButton accesskey="G" styleClass="button" value="Gerar Relatorio" action="#{RelatoriosBo.imprimir}" />&#160;&#160;
                                <h:commandButton accesskey="L" styleClass="button" value="Limpar" action="#{RelatoriosBo.limparCons}"/>&#160;&#160;

                            </td>

                        </table>
                    </fieldset>
                </h:form>
            </ui:define>

        </ui:composition>

    </body>
</html>
